import 'dart:collection';

/// Created by XieXin on 2020/12/22.
/// 路由跳转传递数据
class Arguments {
  late Map<String, dynamic> map;

  Arguments() {
    map = HashMap();
  }

  put(String key, dynamic value) {
    map[key] = value;
  }

  dynamic get(String key, dynamic defaultValue) {
    dynamic value = map[key];
    return value ?? defaultValue;
  }
}
